﻿using UnityEngine;

public class GameConfig
{
    public const string LuaExt = ".lua";

    public static string BuildTarget
    {
        get
        {
#if UNITY_ANDROID
    return "Android";
#elif UNITY_IPHONE
    return "iOS";
#elif UNITY_STANDALONE_OSX
    return "StandaloneOSX";
#elif UNITY_STANDALONE
    return "StandaloneWindows";
#endif
        }
    }

    public static string version
    {
        get
        {
            return UnityEngine.Application.version;
        }
    }

    public static void SetAssetHash(string key, string hash)
    {
        Debug.Log("key:" + key + " hash:" + hash);
        PlayerPrefs.SetString(version + key, hash);
    }

    public static string GetAssetHash(string key)
    {
        return PlayerPrefs.GetString(version + key);
    }
}
